package com.example.h.weixinui3;

import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.example.h.util.MyApplication;

public class SetActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_set);
    }

    public void doexit(View view){
        SharedPreferences.Editor editor=getSharedPreferences("lock",MODE_PRIVATE).edit();
        editor.clear();
        editor.commit();

        Intent intent=new Intent(this,LoginActivity.class);
        startActivity(intent);
        MyApplication.getInstance().exit();
    }
}
